<template>
  <div class="photography-list">
    <div class="photography-item">
      <img
        v-lazy="itemlist.img_url"
        class="lazyload-img photography-pic"
        @click="toggleImg"
      >
      <p class=title>{{itemlist.title}} | {{itemlist.pic_info}}</p>
      <div class="forward">{{itemlist.forward}}</div>
      <p class="words-info">{{itemlist.words_info}}</p>
    </div>
    <div class="photography-list-icon">
      <div class="discovery-icon icon">
        <img src="../../src/assets/img/article/discovery.png">
        <span>小记</span>
      </div>
      <div class="diary-icon icon">
        <img src="../../src/assets/img/article/diary_icon.png">

      </div>
      <div class="bubble-collect-icon icon">
        <img src="../../src/assets/img/article/bubble_collect.png">

      </div>
      <div class="feeds-laud-icon icon">
        <img src="../../src/assets/img/article/feeds_laud_default.png">
        <span>{{itemlist.like_count}}</span>

      </div>
      <div class="feeds-share-icon icon">
        <img src="../../src/assets/img/article/feeds_share.png">

      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PhotographyCard",
  props: {
    itemlist: Object,
  },
  data() {
    return {};
  },

  mounted() {},

  methods: {
    toggleImg() {
      this.$preview({
        urls: [this.itemlist.img_url]
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.photography-list {
  width: 100vw;
  margin: 70px 0 15px;
}
.photography-item {
  box-shadow: 0px 1px 2px rgb(153 139 139);
  margin: 0 10px;
  border-radius: 10px;
  overflow: hidden;

  .title {
    text-align: center;
    margin-top: 13px;
    font-size: 14px;
    color: rgb(184, 178, 178);
  }
  .forward {
    margin: 30px 0 0;
    padding: 0px 20px;
    font-size: 16px;
    line-height: 2;
  }
  .words-info {
    text-align: center;
    font-size: 14px;
    margin: 70px 0 35px;
    color: rgb(184, 178, 178);
  }
}
.photography-pic {
  display: block;
  width: 100%;
}
.photography-list-icon {
  display: flex;
  justify-content: space-between;
  width: 100vw;
  height: 30px;
  padding: 15px 20px 30px;
  box-sizing: border-box;
  color: #888080;
  font-size: 12px;

  .discovery-icon,
  .feeds-laud-icon {
    display: flex;
    align-items: center;
    height: 28px;

    span {
      margin-left: 5px;
    }
  }
  .icon {
    //   flex:1;
    img {
      display: block;
      width: 24px;
      height: 24px;
    }
  }
}
</style>